
import base64

def encode(s, encoding= 'utf8'):
	return base64.b64encode(s.encode(encoding)).decode(encoding)

def decode(s, encoding= 'utf8'):
	return base64.b64decode(s.encode(encoding)).decode(encoding)


if __name__ == '__main__':
	import os
	import sys

	if len(sys.argv)==1:
		filename	= os.path.basename(sys.argv[0])
		print('Usage: %s text'%filename)
		sys.exit(0)

	
	password	= ' '.join(sys.argv[1:])
	print(encode(password))

